<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function f(v){
            return v;
        }

        let a = f(2);
        console.log(a);

        var f = v => v+1;
        console.log(f(4));
        
        var f = (a,b) =>{
            return a*b;
        }
        console.log(f(2,5));

        var f = (id,name) => ({id:id,name:name})
        obj = f(1,'sb');
        console.log('拼接',obj);

    </script>
</body>
</html>